package leetcode.math;

import leetcode.math.common.MathUtils;

class Solution6296 {
    public int alternateDigitSum(int n) {
        return MathUtils.alternateDigitSum(n);
    }
}

public class leetcode6296 {
    public static void main(String[] args) {
        Solution6296 solution6296 = new Solution6296();
        System.out.println(solution6296.alternateDigitSum(521));
        System.out.println(solution6296.alternateDigitSum(111));
        System.out.println(solution6296.alternateDigitSum(886996));
        System.out.println(solution6296.alternateDigitSum(10));
    }
}
